URL(Uniform Resource Locator)

✒️ 2025-06-23 11:57 내용 수정


참고 자료 : mdn web docs URL이란, 위키백과 URL, Uniform Resource Identifier (URI) : Generic Syntax

네트워크 상에서 자원의 위치를 알려주는 규약

URL 구성요소 일반우편 비유
스키마(Scheme) 사용하려는 우편 서비스 HTTP, FTP 등
권한 : 도메인(Domain) 시 또는 마을 네이버, 구글 등
권한 : 포트(Port) 우편 번호 8080 등
경로(Path) 건물 이름 네이버 블로그, 구글 docs 등
매개변수(Parameter) 아파트 번호 등의 추가 정보 블로그의 10번째 글 등
앵커(Anchor) 보낸 사람 문서의 헤더

url.png


스키마(Scheme)

url_scheme.png


권한(Authority)

url_authority.png

도메인(Domain)

포트(Port)


리소스 경로(Path)

참고 자료 : datatracker URL path component, Uniform Resource Identifier (URI): Generic Syntax Path, Medium Fullsour's When Should You Use Path Variable and Query Parameter

url_path.png


매개변수(Parameter)/Query Component

참고 자료 : wikipedia Query String, stackoverflow What is the difference between URL parameters and query strings?, Geeksforgeeks Query String and Query Parameter in Spring MVC, stackoverflow Why do some query strings work evne if parameters are not URL-encoded?, StackExchange Different operators in query string like ?var!=value

url_parameter.png


앵커(Anchor)

url_anchor.png